import type { LoginFormDataType, LoginResponseData } from "@/types/login"
import { http } from "@/utils/myRequest"
// 登录接口
export const loginDataApi = (data: LoginFormDataType) => {
  return http<LoginResponseData>({
    url: '/v1_0/authorizations',
    method: 'POST',
    data
  })
}